import React from 'react';

//pages
import Home from '../view/home/index';
import Course from '../view/course/index';
import Work from '../view/work/index';
import Teacher from '../view/teacher/index';
import Login from '../view/login/index';

const routeData = [
	{
		title: '首页',
		path: '/',
		exact: true,
		render(props) {
			return <Home {...props} />
		}
	}, {
		title: '课程',
		path: '/course',
		exact: true,
		render(props) {
			return <Course {...props} />
		}
	}, {
		title: '教师',
		path: '/teacher',
		exact: true,
		render(props) {
			return <Teacher {...props} />
		}
	}, {
		title: '作品',
		path: '/word',
		exact: true,
		render(props) {
			return <Work {...props} />
		}
	}, {
		title: '作品',
		path: '/login',
		exact: true,
		render(props) {
			return <Login {...props} />
		}
	}
]

export default routeData;